﻿using System;
using System.Net;

namespace FbHelperWP7NonUi.BookStorage.DropBoxStorage.AsyncHelpClasses
{
    internal sealed class LoginResult : AbstractAsyncResult
    {
        private readonly AsyncRequestCompleted<LoginResult> callback;

        public LoginResult( LoginData data, Exception error = null )
            : base( data, error )
        {
            this.callback = data.Callback;
        }

        public AsyncRequestCompleted<LoginResult> Callback
        {
            get
            {
                return callback;
            }
        }
    }
}
